package com.crane.oss.xunfei.resp;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class ApiListResponse<T>  extends ApiResponse{

    private int total;

    private List<T> data;

    public static  ApiListResponse buildFailure() {
        ApiListResponse response=new ApiListResponse();
        response.setCode(500);
        response.setMsg("failure");
        response.setTotal(0);
        response.setData(new ArrayList());
        return response;
    }
}
